import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {AppComponent} from './app.component';
import {EchartsModule} from './commpent/echarts/echarts.module';

const routes: Routes = [
  {
    path: '',
    component: AppComponent,
    children: [
      {
        path: 'echarts',
        loadChildren: './commpent/echarts/echarts.module#EchartsModule'
      },
    ]
  },

];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule {
}

